// 获取部门列表
import request from '@/utils/request'
export function getDepartment() {
  return request({
    url: '/company/department',
    method: 'get'
  })
}
// 删除数据
export function deltdetapi(id) {
  return request({
    url: `/company/department/${id}`,
    method: 'DELETE'
  })
}
// 部门新增
export function addDepartmentAPI(data) {
  return request({
    url: '/company/department',
    method: 'post',
    data
  })
}
// 通过id获取部门数据
export function getDepartDetailAPI(id) {
  return request({
    url: `/company/department/${id}`,
    method: 'get'
  })
}
// 编辑接口
export function editDepartmentAPI(data) {
  return request({
    url: `/company/department/${data.id}`,
    method: 'put',
    data
  })
}
// 添加员工
export function importEmployeeAPI(data) {
  return request({
    url: '/sys/user/batch',
    method: 'post',
    data
  })
}
